package lianxi6;

public class Student {
    private String sid;
    private String sname;
    private String ssex;
    private int sage;

    public Student(String sid, String sname, String ssex, int sage) {
        this.sid = sid;
        this.sname = sname;
        this.ssex = ssex;
        this.sage = sage;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSsex() {
        return ssex;
    }

    public void setSsex(String ssex) {
        this.ssex = ssex;
    }

    public int getSage() {
        return sage;
    }

    public void setSage(int sage) {
        this.sage = sage;
    }

    @Override
    public String toString() {
        return "学号：'" + sid + '\'' +
                ", 姓名：'" + sname + '\'' +
                ", 性别：'" + ssex + '\'' +
                ", 年龄：" + sage +
                '}';
    }
}
